<?php
/**
 * Created by PhpStorm.
 * User: user
 * Date: 2016/3/24
 * Time: 15:44
 */

use front\assets\AppAsset;
use yii\helpers\Url;

$base = AppAsset::register($this);
$baseUrl = $base->baseUrl;

$this->title = "消息";

$css = <<<Css
.m-msg1 dl {
    background: #fff url({$baseUrl}/static/img/ico12.png) no-repeat 95% 50%;
    background-size: 8px;
    margin-bottom: .875rem;
    padding: .625rem 0;
    padding-right: 3rem;
    font-size: .875rem;
}
Css;
$this->registerCss($css);
?>
<body class="u-bg1">
<div class="m-msg1">

    <dl class="J_link" data-url="<?= Url::to(['message/system_list'])?>">
        <dt>系统消息<span><?= isset($system['updated_at'])? date('Y.m.d H:i', $system['updated_at']): ""?></span></dt>
        <dd><?= isset($system['title'])? $system['title']: "-"?></dd>
    </dl>

    <dl class="J_link" data-url="<?= Url::to(['message/favour_list'])?>">
        <dt>优惠促销<span><?= isset($favour['created_at'])? date('Y.m.d H:i', $favour['created_at']): ""?></span></dt>
        <dd><?= isset($favour['title'])? $favour['title']: "-"?></dd>
    </dl>

    <dl class="J_link" data-url="<?= Url::to(['message/logistics_list'])?>">
        <dt>物流通知<span><?= isset($logistics['created_at'])? date('Y.m.d H:i', $logistics['created_at']): ""?></span></dt>
        <dd>您的物流通知快去看看吧~</dd>
    </dl>

</div>

<script>
    $(function(){

        // 链接跳转
        $('.J_link').on('tap', function(){

            window.location.href = $(this).attr('data-url');
        });
    });
</script>
</body>






































